package com.xiaoge.biz.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaoge.biz.entity.InStock;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoge.biz.entity.Product;
import com.xiaoge.biz.vo.IntoStockVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoge
 * @since 2021-03-21
 */
public interface InStockService extends IService<InStock> {

    /**
     * 分页查询入库列表
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<InStock> findInStockList(Page<InStock> page, QueryWrapper<InStock> queryWrapper);

    void addIntoStock(IntoStockVo intoStockVo);

    void publishInStock(Long id, String inNum);

    void delete(Long id, String inNum);
}
